﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Script.Serialization;

namespace Models.WebSite_HaiSheng
{
    public class Company:EntityBase
    {
        [Display(Name="公司名称")]
        public string CompanyName { get; set; }

        [ScriptIgnore()]
        public virtual CompanyType CompanyType { get; set; }
        [Display(Name = "公司类型"), Required(ErrorMessage = "请选择公司的类型")]
        public int? CompanyTypeID { get; set; }
    }
    public class CompanyType : EntityBase
    {
        [Display(Name = "公司类型名称"), Required()]
        public string CompanyTypeName { get; set; }
    }
}